<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="https://lib.baomitu.com/jquery/2.2.4/jquery.js"></script>
    </script>
</head>

<body>
    <form action="http://localhost:8081/add" method="post">
        <input type="text" name="name">
        <br>
        <input type="password" name="password">

        <input type="submit">
    </form>
    <!-- 查询 -->
    <h2>登录页面</h2>
    <form action="http://localhost:8081/query" method="post">
        <input type="text" name="name">
        <br>
        <input type="password" name="password">

        <input type="submit">
    </form>
    <script>
        // $.ajax({
        //     url: "http://localhost:8081/add",
        //     method: "post",
        //     data: {
        //         name: "vue",
        //         password: 12345,
        //     },
        //     success: res => {
        //         console.log(res)
        //     }
        // })
    </script>
</body>

</html>